package com.choosefine.paycenter.config;

//import org.apache.catalina.connector.Connector;

import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatConnectorCustomizer;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Comments：
 * Author：Jay Chang
 * Create Date：2017/5/22
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
//@Configuration
public class TomcatConfig {
//    @Bean
//    public EmbeddedServletContainerFactory servletContainerFactory(){
//        TomcatEmbeddedServletContainerFactory tomcatEmbeddedServletContainerFactory = new TomcatEmbeddedServletContainerFactory();
//        tomcatEmbeddedServletContainerFactory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
//            @Override
//            public void customize(Connector connector) {
//                connector.setURIEncoding("UTF-8");
//                connector.setUseBodyEncodingForURI(true);
//            }
//        });
//        return tomcatEmbeddedServletContainerFactory;
//    }
}
